import fetch from 'common/src/utils/fetch'

export const pagePathUrl = '/api/electionservice/elcNoGradCouSubs/page';
/**
 * 添加替代课程
 */
export function addData(data) {
    return fetch({
        url: '/api/electionservice/elcNoGradCouSubs/add',
        method: 'post',
        data: data
    });
}
/**
 * 修改替代课程
 */
export function updateData(data) {
    return fetch({
        url: '/api/electionservice/elcNoGradCouSubs/update',
        method: 'post',
        data: data
    });
}
/**
 * 删除
 */
export function del(data) {
    return fetch({
        url: '/api/electionservice/elcNoGradCouSubs/delete',
        method: 'post',
        data: data
    });
}

/**
 * 结业生下拉框
 */
export function getGraduateStuPage(data) {
    return fetch({
        url: '/api/studentservice/studentInfo/getGraduateStuPage',
        method: 'post',
        data: data
    });
}


/**
 * 查询本科生选课的学生
 */
export function findStuInfo(data) {
    return fetch({
        url: '/api/electionservice/elcNoGradCouSubs/findStuInfoList',
        method: 'post',
        data: data
    });
}


/**
 * 替代课程原课程查询
 */
export function findOriginCourse(data) {
    return fetch({
        url: '/api/electionservice/elcNoGradCouSubs/findOriginCourse',
        method: 'post',
        data: data
    });
}

/**
 * 替代课程新课程查询
 */
export function findNewCourse(data) {
    return fetch({
        url: '/api/electionservice/elcNoGradCouSubs/findNewCourse',
        method: 'post',
        data: data
    });
}
/**
 * 替代课程共同课程查询
 */
export function findOriginCourseByStudentIds(data) {
    return fetch({
        url: '/api/electionservice/elcNoGradCouSubs/findOriginCourseByStudentIds',
        method: 'post',
        data: data
    });
}

/**
 * 批量添加替代课程
 */
export function batchData(data) {
    return fetch({
        url: '/api/electionservice/elcNoGradCouSubs/batchAdd',
        method: 'post',
        data: data
    });
}

/**
 * 审核替代
 */
export function aduitCourse(data) {
    return fetch({
        url: '/api/electionservice/elcNoGradCouSubs/aduitCourse',
        method: 'post',
        data: data
    });
}